const Collection = require('../../config/db.config').Collection
module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const LoginLogSchema = new Schema({
        userId: String, // 用户Id
        userIp: String, // 登录ip
        loginDate: String, // 登录时间
        loginLocalDate: String, // 登录时间
        userAgent: String, 
    });

    return mongoose.model('LoginLog', LoginLogSchema, Collection.LOGIN_LOG);
};